package TestDay;

import java.sql.SQLOutput;
import java.util.Random;
public class ArrayDemo02 {
    public static void main(String[] args) {
        Random r=new Random();
        int[] arr=new int[6];
        int b=0;
        for(int a=0;a<arr.length;a++){
            int number=r.nextInt(101);
            arr[a]=number;
            b+=arr[a];
        }
        System.out.println("和是"+b);
    }
}
